<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  created () {
    if (JSON.stringify(this.$store.state.user) === '{}') {
      this.$router.push('/login')
    }
  }
}
</script>
<style lang="stylus">
#app {
  display: block;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  padding-top: 71px;
  padding-left: 150px;
}
</style>
